import { apiData } from "@/config";
import type { UserLoginParams,UserLoginRes } from './userService.d'
import { request } from "@/utils/http/axios/request";




//登录
export function getUserLogin(params:UserLoginParams) {
    return request.get<UserLoginParams,UserLoginRes>(
        apiData.user.userLogin,
        params,
        {
            token:false,
            apiPrefixUrl:'/user'
        }
    )
}


//退出登录
export function getLoginOut() {
    return request.get(
        apiData.user.loginOut,
        {},
        {
            token:true,
            apiPrefixUrl:'/user'
        }
    )
}
